﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ElevatorSimulator
{
    public partial class QueueIn : Panel
    {

        int floorNumber;
        int noWaiting = 0;

        /** Creates new form InQueue */
        public QueueIn(int floorNumber, int width, int height)
        {
            this.floorNumber = floorNumber;
            this.temp.Text = noWaiting.ToString();
            //this.setPreferredSize(new Dimension(width, height));
            InitializeComponent();

            // temp refers to label, implement label.
        }

        public void incrementWaitingLabel()
        {
            noWaiting++;
            this.temp.Text = noWaiting.ToString();
        }

        public void decrementWaitingLabel()
        {
            noWaiting--;
            this.temp.Text = noWaiting.ToString();
        }
    }
}
